package com.sz.web.account.entity;

import com.sz.web.common.entity.BaseEntity;

import javax.persistence.Table;

/**
 * 功能
 */
@Table(name = "account_function")
public class AccountFunction extends BaseEntity {
    private static final long serialVersionUID = 4731132107215029293L;

    /**
     * 功能名称
     */
    private String functionName = "";

    /**
     * 状态 0 无此权限   1 有此权限  2禁用  3移除配置
     */
    private Integer status = 0;

    /**
     * control路由
     */
    private String controlUrl = "";

    /**
     * 二级菜单名称
     */
    private String firstMenu = "未定义";

    public String getFirstMenu() {
        return firstMenu;
    }

    public void setFirstMenu(String firstMenu) {
        this.firstMenu = firstMenu;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getControlUrl() {
        return controlUrl;
    }

    public void setControlUrl(String controlUrl) {
        this.controlUrl = controlUrl;
    }

    @Override
    public String toString() {
        return "AccountFunction{" +
                "functionName='" + functionName + '\'' +
                ", status=" + status +
                ", controlUrl='" + controlUrl + '\'' +
                ", firstMenu='" + firstMenu + '\'' +
                '}';
    }
}
